<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <!--这里的这种表达方式，是会被p标签中其他部分的数据影响的-->
    <p>aaaaa{{msg}}</p>
    <p v-text = "msg01">aaaaa</p>

    <button v-text="flag?'对':'错'" v-on:click="flag=!flag"></button>
    <script>
        let vm = new Vue({
            el:"#app",
            data: {
                msg: 'Hello~',
                msg01: "hello",
                flag:true
            },
        })
    </script>
</div>
</body>
</html>